const MongoClient = require('mongodb').MongoClient

const url = 'mongodb://127.0.0.1:27017/youdaoFetchMark';
const dbName = 'youdaoFetchMark'

MongoClient.connect(
    url,{}
).then((client,aaa,bbb ) => {
    // if (err) {
    //     console.error('mongodn connect error', err)
    //     return
    // }

    console.log('mongodb connect success')

    // 切换到数据库
    const db = client.db(dbName);
    const  latestMarkedVersions= db.collection('latestMarkedVersions');
    (async ()=>{
        let result = await latestMarkedVersions.find().toArray();
        console.log("")

    })().then(result=>{

    })


    // marketFetchYoudaoLijuMainMapEntryCollectionDAO.connectedThen(marketFetchYoudaoLijuMainMapEntryCollection);
    // client.close()
});